<?php namespace App\Http\Controllers\Api\User;

use App\Http\Controllers\Controller;
use App\Api\Models\Goods;
use App\Api\Auth\LoginService;

class OrderController extends Controller{
    
    //订单列表
    public function getOrderlist() {
        $res = with(new Order())->getOrderlist();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
    //订单详情
    public function getOrderinfo() {
        $res = with(new Order())->getOrderinfo();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
    //订单创建
    public function Order() {
        $res = with(new Order())->Order();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
    //订单创建信息返回
    public function OrderInfo() {
        $res = with(new Order())->OrderInfo();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
   
}